package com.xian.im.web.modules.document;

import com.xian.im.common.annotation.StopWatch;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @program: xian-code
 * @description:
 * @author: liru.xian
 * @create: 2021-01-23 14:40
 **/
@Controller
@RequestMapping("im/page")
@Api(value = "IM Page 调试页面", tags = {"IM Page 调试页面"})
public class IMPageDemoController {


    @ApiOperation(value = "xim服务调试页面", httpMethod = "GET",
            notes = "调试页面")
    @GetMapping(value = "/index")
    public String encryptedKey(){
        return "socket_xim";
    }

    @ApiOperation(value = "本地调试页面", httpMethod = "GET",
            notes = "本地调试页面")
    @RequestMapping(value = "/local",method = RequestMethod.GET)
    public String local(){
        return "socket";
    }

    @ApiOperation(value = "本地调试页面1", httpMethod = "GET",
            notes = "本地调试页面1")
    @RequestMapping(value = "/local1",method = RequestMethod.GET)
    @StopWatch(name = "local1")
    public String local1(){
        return "socket1";
    }

}
